package com.caiyouxi.util;

import com.caiyouxi.boss.LogBean;
import com.caiyouxi.common.util.Log;

public class LogThread extends Thread{

    private LogBean logBean;

    public LogThread(LogBean logBean){
        this.logBean = logBean;
    }

    @Override
    public void run(){
//        Map<String, Object> map = new HashMap<String, Object>();
//        map.put("category", logBean.getCategory());
//        map.put("target_type", logBean.getTarget_type());
//        map.put("target_id", logBean.getTarget_id());
//        map.put("action", logBean.getAction());
//        map.put("user_id", logBean.getUser_id());
//        map.put("result_data", logBean.getResult_data());
//        map.put("raw_data", logBean.getRaw_data());
//        map.put("level", logBean.getLevel());
//        map.put("client_info",logBean.getChlient_info());
//        map.put("host_info",logBean.getHost_info());
//        map.put("product_code",logBean.getProduct_code());
        Log.e("发送日志服务请求，地址：" + PathAdressUtil.LOGS_URL);
        HttpUtil.post_body_json(PathAdressUtil.LOGS_URL,logBean);
    }

}
